package com.aierkeji.b2c.entity.snapshot;

import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import org.hibernate.annotations.GenericGenerator;

/**
 * 支付宝生活号实体
 */
@Entity
@Table(name = "akj_alipay_life")
public class AkjAlipayLifeSnap {

	@Id
	@GeneratedValue(generator = "uuid")
	@GenericGenerator(name = "uuid", strategy = "uuid")
	@Column(name = "id", length = 32)
	private String id;

	@Column(length = 128)
	private String name;

	@Column(name = "life_id", length = 32)
	private String lifeId;
	@Column
	private String privteKey;// 应用私钥

	@Column
	private String publicKey;// 应用公钥

	@Column
	private String aesKey;// AES秘钥

	@Column
	private String alipayPublicKey;// 支付宝公钥

	@Column(name = "is_delete")
	private Boolean delete;

	@Column(name = "tel", length = 15)
	private String tel;

	@ManyToOne(targetEntity = AkjMerchantsSnap.class, cascade = CascadeType.REFRESH, fetch = FetchType.EAGER)
	@JoinColumn(name = "merchants_id", nullable = false)
	AkjMerchantsSnap akjMerchants;

//    @Column(name="pid",length=32)
//    private String pid;
//    
//    @Column(name="pid_name",length=255)
//    private String pidName;
	@Column
	private Boolean termination=false ;//是否被封停
	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getLifeId() {
		return lifeId;
	}

	public void setLifeId(String lifeId) {
		this.lifeId = lifeId;
	}

	public String getPrivteKey() {
		return privteKey;
	}

	public void setPrivteKey(String privteKey) {
		this.privteKey = privteKey;
	}

	public String getPublicKey() {
		return publicKey;
	}

	public void setPublicKey(String publicKey) {
		this.publicKey = publicKey;
	}

	public String getAesKey() {
		return aesKey;
	}

	public void setAesKey(String aesKey) {
		this.aesKey = aesKey;
	}

	public String getAlipayPublicKey() {
		return alipayPublicKey;
	}

	public void setAlipayPublicKey(String alipayPublicKey) {
		this.alipayPublicKey = alipayPublicKey;
	}

	public Boolean getDelete() {
		return delete;
	}

	public void setDelete(Boolean delete) {
		this.delete = delete;
	}

	public String getTel() {
		return tel;
	}

	public void setTel(String tel) {
		this.tel = tel;
	}

	public AkjMerchantsSnap getAkjMerchants() {
		return akjMerchants;
	}

	public void setAkjMerchants(AkjMerchantsSnap akjMerchants) {
		this.akjMerchants = akjMerchants;
	}

	public Boolean getTermination() {
		return termination;
	}

	public void setTermination(Boolean termination) {
		this.termination = termination;
	}

//	public String getPid() {
//		return pid;
//	}
//
//	public void setPid(String pid) {
//		this.pid = pid;
//	}
//
//	public String getPidName() {
//		return pidName;
//	}
//
//	public void setPidName(String pidName) {
//		this.pidName = pidName;
//	}

}
